package com.hfzy.ihk.web.userCenter.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hfzy.ihk.facade.userCenter.entity.OAuthClient;
import com.hfzy.ihk.facade.userCenter.entity.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用于集成spring security Mapper 接口
 * </p>
 *
 * @author wws
 * @since 2018-12-28
 */
public interface OAuthMapper extends BaseMapper<OAuthClient> {


    Integer count(@Param("params") Map<String, Object> map);



    List<OAuthClient> list(@Param("params") Map<String, Object> params, @Param("offset") Integer offset,
                        @Param("limit") Integer limit);

    @Update("update oauth_client_details set web_server_redirect_uri=#{webServerRedirectUri} where client_id = #{clientId}")
    void updateWebServerRedirectUri(@Param("webServerRedirectUri") String webServerRedirectUri,@Param("clientId") String clientId);

}
